package dominio;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name="cliente_condicionesPago")
public class CondicionPago {
	private Integer id;
	private Integer cuotas;
	private Float recargoInteres;
	private Cliente cliente;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)		
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}

	@Column(nullable=false)
	public Integer getCuotas() {
		return cuotas;
	}
	public void setCuotas(Integer cuotas) {
		this.cuotas = cuotas;
	}

	@Column(nullable=false)
	public Float getRecargoInteres() {
		return recargoInteres;
	}
	public void setRecargoInteres(Float recargoInteres) {
		this.recargoInteres = recargoInteres;
	}
	
	@ManyToOne
	@JoinColumn(name = "idCliente")
	public Cliente getCliente() {
		return cliente;
	}
	public void setCliente(Cliente cliente) {
		this.cliente = cliente;
	}
	
	
}
